package com.futures.investm.common;

import android.os.Bundle;
import android.widget.ImageView;


import com.futures.investm.R;

import butterknife.BindView;
import tech.com.commoncore.base.BaseFragment;
import tech.com.commoncore.manager.GlideManager;

public class GuideFragment extends BaseFragment {

    @BindView(R.id.iv_guide)
    ImageView ivGuide;

    private int imgId;

    public static GuideFragment newInstance(int imgId) {
        Bundle args = new Bundle();
        args.putInt("imgId", imgId);
        GuideFragment fragment = new GuideFragment();
        fragment.setArguments(args);
        return fragment;
    }

    @Override
    public void beforeSetContentView() {
        super.beforeSetContentView();
        Bundle args = getArguments();
        imgId = args.getInt("imgId");
    }

    @Override
    public int getContentLayout() {
        return R.layout.fragment_guide;
    }

    @Override
    public void initView(Bundle savedInstanceState) {
        GlideManager.loadImg(imgId, ivGuide);
    }

}
